package io.renren.modules.sys.dao;

import com.baomidou.mybatisplus.plugins.Page;
import io.renren.modules.sys.entity.OrdersEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import io.renren.modules.sys.searcher.OrderSearcher;
import io.renren.modules.sys.vo.OrderVO;
import io.renren.modules.sys.vo.OrdersDownVO;
import io.renren.modules.sys.vo.ProductVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 订单
 * 
 * @author generator
 * @email 707069921@qq.com
 * @date 2018-10-28 12:52:38
 */
public interface OrdersDao extends BaseMapper<OrdersEntity> {


    List<OrderVO> selectList(Page<OrderVO> page, Map<String, Object> params);

    OrderVO selectOrderInfoList(@Param("orderId") Long orderId);


    List<OrdersDownVO> selectOrderListDown(@Param("searcher") OrderSearcher searcher);


    int selectCountOrder(@Param("time") String time);

    int insertOrder(OrdersEntity orders);
	
}
